package com.xhs.backupforce.utils;

/**
 * @author zdl
 * @date 2018/3/3 11:01
 * email zdl328465042@163.com
 * explain 字符串工具类
 */

public class MyStringUtil {
    private static final String EMPTY_1 = "";
    private static final String EMPTY_2 = "null";

    /**
     * 判断字符串是否为空
     * @param str 要判断的字符串
     * @return true:为空  false:不为空
     */
    public static boolean isEmpty(String str){
        return null == str || str.equals(EMPTY_1) || str.equals(EMPTY_2);
    }
}
